<%
	import json

	jsFiles = list()
	jsFiles.append('/script/global_plugins.merged.min.js?v=14')
	jsFiles.append('/script/global/global.merged.min.js?v=16')
	jsFiles.extend(c.jsFiles)
	c.jsFiles = jsFiles
	
	cssFiles = list()
	cssFiles.append('/css/global_plugins.merged.min.css?v=15')
	cssFiles.append('/css/global/global.merged.min.css?v=15')
	cssFiles.extend(c.cssFiles)
	c.cssFiles = cssFiles
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		% for file in c.jsFiles :
		<script type="text/javascript" src=${file}></script>
		% endfor
		% for file in c.cssFiles :
		<link href="${file}" media="screen" rel="stylesheet" type="text/css"/>
		% endfor
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
		<meta name="google-site-verification" content="beG6bNNLUUODWMRbnfUQkioTgS12nnQBQ67G2DUda1U" />
		<title>${c.title}</title>
		<script type="text/javascript">
			var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-20323058-1']);_gaq.push(['_trackPageview']);
			(function(){var ga = document.createElement('script');ga.type='text/javascript';ga.async = true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga, s);})();
		</script>
	</head>
	<body>
		<div class="page_variable">
			<%
				l = list()
				for s in c.schools : l.append({"id" : s.id, "name" : s.name})
			%>
			<div var_name="schools">${json.dumps(l)}</div>
		</div>
		${c.header}
		<div id="globalcontent">${c.content}</div>
		<div style="clear:both;"></div>
		<div class="global_footer">
			<div class="footer_fido" style="float:left;">ImFido</div>
			<div class="footer_links" style="float:right;">关于我们 · 隐私声明</div>
		</div>
	</body>
</html>
